// hideInMenu:是否显示在左侧菜单（false）true就是不显示
// isShowTab:是否不显示在顶部菜单（false）true就是不显示
// isParent:是否只有当前项（false）ture：不管子路由有多少 都只显示第一个子路由

import Layout from "@/layout/index.vue";
export default [
  {
    path: "/TestCase",
    name: "TestCase",
    component: Layout,
    meta: {
      name: "测试用例管理",
      icon: "Wallet",
    },
    children: [
      {
        path: "/TestCase/list",
        name: "TestCase/list",
        component: () => import("@/views/TestCase/list.vue"),
        meta: {
          keepAlive: true, // 设置需要缓存的组件
          name: "测试用例",
          icon: "ScaleToOriginal",
        },
      },
      {
        path: "/TestCase/detail",
        name: "TestCase/detail",
        component: () => import("@/views/TestCase/detail.vue"),
        meta: {
          hideInMenu: true,
          isShowTab:true,
          keepAlive: false, // 设置需要缓存的组件
          name: "用例详情",
        },
      },
      {
        path: "/Report/index",
        name: "Report/index",
        component: () => import("@/views/Report/index.vue"),
        meta: {
          hideInMenu: true,
          isShowTab:true,
          keepAlive: false, // 设置需要缓存的组件
          name: "内嵌页面",
        },
      },
    ],
  },
  {
    path: "/TestRecord",
    name: "TestRecord",
    component: Layout,
    meta: {
      name: "测试记录管理",
      icon: "Wallet",
    },
    children: [
      {
        path: "/TestRecord/list",
        name: "TestRecord/list",
        component: () => import("@/views/TestRecord/list.vue"),
        meta: {
          
          keepAlive: true, // 设置需要缓存的组件
          name: "测试记录",
          icon: "Tickets",
        },
      },
      {
        path: "/TestRecord/detail",
        name: "TestRecord/detail",
        component: () => import("@/views/TestRecord/detail.vue"),
        meta: {
          hideInMenu: true,
          isShowTab:true,
          keepAlive: false, // 设置需要缓存的组件
          name: "测试记录详情",
        },
      },
      {
        path: "/TestRecord/detail1",
        name: "TestRecord/detail1",
        component: () => import("@/views/TestRecord/detail1.vue"),
        meta: {
          hideInMenu: true,
          isShowTab:true,
          keepAlive: false, // 设置需要缓存的组件
          name: "测试记录详情",
        },
      },
    ],
  },
  {
    path: "/Settings",
    name: "Settings",
    component: Layout,
    meta: {
      name: "系统管理",
      icon: "Setting",
    },
    children: [
      {
        path: "/Settings/User/index",
        name: "SettingsUserList",
        component: () => import("@/views/Settings/User/index.vue"),
        meta: {
          
          keepAlive: true, // 设置需要缓存的组件
          name: "用户管理",
          icon: "User",
        },
      },
      {
        path: "/Settings/Environment/index",
        name: "SettingsEnvironmentList",
        component: () => import("@/views/Settings/Environment/index.vue"),
        meta: {
          
          keepAlive: true, // 设置需要缓存的组件
          name: "环境管理",
          icon: "Coin",
        },
      },
      {
        path: "/Settings/Menu/index",
        name: "SettingsMenuList",
        component: () => import("@/views/Settings/Menu/index.vue"),
        meta: {
          
          keepAlive: true, // 设置需要缓存的组件
          name: "菜单管理",
          icon: "Menu",
        },
      },
    ],
  },
  {
    path: "/System",
    name: "System",
    component: Layout,
    meta: {
      name: "系统配置管理",
      icon: "Setting",
    },
    children: [
      {
        path: "/System/index",
        name: "System/index",
        component: () => import("@/views/System/index.vue"),
        meta: {
          
          keepAlive: true, // 设置需要缓存的组件
          name: "系统配置",
          icon: "SetUp",
        },
      },
    ],
  },
];
